// @description 特殊处理
// @author yurui
// @createDate 2023.1.09
// @version v1.0.0
import { defHttp } from '/@/utils/http/axios';
import { ApiCommon } from '../common'

const { BILLING_ADMIN_API } = ApiCommon;

enum Api {
    //冲红账单列表
    BACK_RECORD_LIST = '/record/write/back/record/list',
    //创建冲红记录
    BACK_CREATE = '/record/write/back/create',
    //冲红计算处理/冲减阶梯
    BACK_HANDLE = '/record/write/back/handle',
    //冲减水量账单列表
    WATER_QTY_LIST = '/record/water-qty/reduced/record/list',
    //冲减水量费用计算
    WATER_QTY_COST_CALC = '/record/water-qty/reduced/cost/calc',
    //创建冲减水量记录
    WATER_QTY_COST_CREATE = '/record/water-qty/reduced/create'
}

/**
 * @description: 请求的API地址
 */

//冲红账单列表
export const backRecordListApi = (params:object) => defHttp.post({ url: BILLING_ADMIN_API + Api.BACK_RECORD_LIST, params});
//创建冲红记录
export const backCreateApi = (params:object) => defHttp.post({ url: BILLING_ADMIN_API + Api.BACK_CREATE, params });
//冲红计算处理/冲减阶梯
export const backHandleApi = (params:object) => defHttp.post({ url: BILLING_ADMIN_API + Api.BACK_HANDLE, params });
//冲减水量账单列表
export const waterQtyRecordListApi = (params:object) => defHttp.post({ url: BILLING_ADMIN_API + Api.WATER_QTY_LIST, params });
//冲减水量费用计算
export const waterQtyCostCalcApi = (params:object) => defHttp.post({ url: BILLING_ADMIN_API + Api.WATER_QTY_COST_CALC, params });
//创建冲减水量记录
export const waterQtyCostCreateApi = (params:object) => defHttp.post({ url: BILLING_ADMIN_API + Api.WATER_QTY_COST_CREATE, params });











